#pragma once

#include "rBuffer.h"
#include "rEngine.h"
#include "IItemType.h"

#ifdef WINDOWS
#include <Windows.h>
#endif

#include <gl.h>

#include <ft2build.h>
#include FT_FREETYPE_H

#include <iostream>

class rTextType: public IItemType
{
public:
	rTextType(void);
	~rTextType(void);

void Render(const rBuffer * buffer, std::iostream * stream);

void LoadFont(const char * fontName);

private:
	FT_Library library;
	FT_Face     face; 

	GLuint * texture;

	unsigned int (*bounds)[3];
	float (*texbounds)[2];

};

